package net.web.milkteapos.bean;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

/**
 * 产品表
 */
@Table("product")
public class Product {

	@Id
	@Column("product_id")
	private int productId;
	@Column("product_name")
	private String productName;
	/*@Column("product_mixed")
	private String productMixed;
	@Column("product_capacity")
	private int productCapacity;*/
	@Column("money_id")
	private int moneyId;
	@Column("product_type_id")
	private int productTypeId;
	@Column("create_time")
	private Date createTime;
	
	@One(target = Money.class, field = "moneyId")
	private Money money;
	
	@One(target = ProductType.class, field = "productTypeId")
	private ProductType productType;
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public int getProductId() {
		return productId;
	}
	public void setProductId(int productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	
	public int getProductTypeId() {
		return productTypeId;
	}
	public void setProductTypeId(int productTypeId) {
		this.productTypeId = productTypeId;
	}
	public ProductType getProductType() {
		return productType;
	}
	public void setProductType(ProductType productType) {
		this.productType = productType;
	}
	public void setMoney(Money money) {
		this.money = money;
	}
	public int getMoneyId() {
		return moneyId;
	}
	public void setMoneyId(int moneyId) {
		this.moneyId = moneyId;
	}
	public Money getMoney() {
		return money;
	}
	
	
}
